package me.alide.modules.survey.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import me.alide.modules.survey.entity.MySurvey;
import me.alide.modules.survey.entity.SurveyEntity;
import me.alide.modules.survey.form.SurveyDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author wutairui
 */
@Mapper
public interface SurveyEntityDao extends BaseMapper<SurveyEntity> {

    List<MySurvey> queryBySurveyUserId(Long userId, IPage<MySurvey> pageObj);

    List<MySurvey> queryBySurveyList(IPage<MySurvey> pageObj);

    List<SurveyDetail> queryList(String startTime, String endTime);
}